﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace CERT.PageLibrary.Assertions {
	// TODO modify assertion exception logic to new model - originally this an inheritance model but nunit appears to do direct type matching
	public abstract class AssertionExceptionBase {

		public AssertionExceptionBase(string basicMessage) { }

		public string Message {
			get {
				return InternalMessage;
			}
		}

		public override string ToString() {
			return InternalMessage;
		}

		protected abstract string InternalMessage { get; }

		public AssertionException GetException() {
			return new AssertionException(this.ToString());
		}
	}
}
